<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "member".
 *
 * @property integer $id
 * @property string $username
 * @property string $password
 * @property string $full_name
 * @property integer $mobile
 * @property string $univercity
 * @property string $address
 * @property string $facebook
 * @property integer $gender
 * @property string $birthday
 * @property string $tel
 * @property string $create_date
 * @property string $update_date
 * @property string $avatar
 * @property integer $active
 * @property string $email
 */
class Member extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'member';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['mobile', 'gender', 'active'], 'integer'],
            [['birthday', 'create_date', 'update_date'], 'safe'],
            [['username', 'full_name', 'avatar'], 'string', 'max' => 255],
            [['password', 'address', 'tel'], 'string', 'max' => 45],
            [['univercity', 'email'], 'string', 'max' => 100],
            [['facebook'], 'string', 'max' => 60]
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'username' => 'Username',
            'password' => 'Password',
            'full_name' => 'Full Name',
            'mobile' => 'Mobile',
            'univercity' => 'Univercity',
            'address' => 'Address',
            'facebook' => 'Facebook',
            'gender' => 'Gender',
            'birthday' => 'Birthday',
            'tel' => 'Tel',
            'create_date' => 'Create Date',
            'update_date' => 'Update Date',
            'avatar' => 'Avatar',
            'active' => 'Active',
            'email' => 'Email',
        ];
    }
}
